﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>efwservice</Title>
      <Author>kakake</Author>
      <Description>后台服务的代码片段</Description>
      <HelpUrl></HelpUrl>
      <SnippetTypes />
      <Keywords />
      <Shortcut>efwservice</Shortcut>
    </Header>
    <Snippet>
      <References />
      <Imports>
        <Import>
          <Namespace>EFWCoreLib.WcfFrame.DataSerialize</Namespace>
        </Import>
        <Import>
          <Namespace>EFWCoreLib.WcfFrame.ServerController</Namespace>
        </Import>
        <Import>
          <Namespace>EFWCoreLib.CoreFrame.Business.AttributeInfo</Namespace>
        </Import>
      </Imports>
      <Declarations />
      <Code Language="csharp" Kind="" Delimiter="$"><![CDATA[[WCFController]
    public class BookDemoService : WcfServerController
    {
        [WCFMethod]
        public ServiceResponseData SaveBook()
        {
            Book book = requestData.GetData<Book>(0);
            BindDb(book);
            book.save();
            responseData.AddData(true);
            return responseData;
        }
		$selected$$end$
	}]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>